{% extends "email/base_mail.html"%}
{% import "email/macros.html" as macros %}

{#
    parameters:
    * reply_separator_line
    * replace_content_address
    * mailto_link_subject
    * post
    * reply_code (comma-separated list of emails to respond to this message)
#}

{% block content %}
{% if email_code %}
    {{ reply_separator_line }}
    <p>{% trans 
            post_text = post.text|safe_urlquote,
            subject = mailto_link_subject|safe_urlquote,
            author_email_signature = author_email_signature|safe_urlquote
    %}If you would like to edit by email, please
    <a href="mailto:{{ replace_content_address }}?body={{ post_text }}{{ author_email_signature}}&subject={{ subject }}">click here</a>{% endtrans %}</p>
{% endif %}
<p>{% trans %}Below is a copy of your post:{% endtrans %}</p>
{% if post.post_type == 'question' %}
    <p style="font-size:16px">{{ post.thread.title }}</p>
{% endif %}
{{ post.html }}
{% endblock %}

{%block footer %}
{% include "email/footer.html" %}
{% if email_code %}
    <p style="{{ macros.fine_print_style() }}">{{ email_code }}</p>{# important #}
{% endif %}
{% endblock %}
